package com.hospital.service.impl;

import com.hospital.dao.RemarkDao;
import com.hospital.domain.Remark;
import com.hospital.service.RemarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RemarkServiceImpl implements RemarkService {
    @Autowired
    RemarkDao remarkDao;
    @Override
    public List<Remark> selectRemarkByDoctorID(int x) {
        return remarkDao.selectRemarkByDoctorID(x);
    }

    @Override
    public void addRemarkByUserIDAndDoctorID(int userID, int doctorID, String content) {
        remarkDao.addRemarkByUserIDAndDoctorID(userID,doctorID,content);
    }
}
